package cst.neu.yuejian_31.service;

import cst.neu.yuejian_31.bean.ResultBean;
import okhttp3.RequestBody;
import retrofit2.Call;
import retrofit2.http.Multipart;
import retrofit2.http.POST;
import retrofit2.http.Part;

/**
 * Created by xxe on 2017/11/2.
 */

public interface UpPostService {@Multipart
@POST("Post/addPost")
Call<ResultBean> uploadFile (@Part("user_id") int userId,
                             @Part("post_intro") String postIntro,
                             @Part("file\"; filename=\"test.jpg\"") RequestBody imgs );
}
